import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import '@/common/js/element'
import * as global from '@/common/js/global.js'
import { Message, MessageBox } from 'element-ui'
import "@/common/css/global.css"
import '@/common/css/font.css'
import InfiniteScroll from 'vue-infinite-scroll'
import highlightPlugin from "@highlightjs/vue-plugin"
import VueHoverMask from 'vue-hover-mask'

import echarts from 'echarts'


Vue.use(highlightPlugin);
Vue.use(InfiniteScroll);

Vue.component(VueHoverMask.name, VueHoverMask)

Vue.config.productionTip = false


new Vue({
  render: h => h(App),
  created() {
    Vue.prototype.$bus = this,
      Vue.prototype.$message = Message,
      Vue.prototype.$global = global,
      Vue.prototype.$confirm = MessageBox.confirm,
      Vue.prototype.$echarts = echarts 

  },
  router,
  store,
}).$mount('#app')
